package com.tianaceae.educational.service.impl;

import com.tianaceae.educational.domain.EduRoom;
import com.tianaceae.educational.mapper.EduRoomMapper;
import com.tianaceae.educational.service.IEduRoomService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 教务_教室Service业务层处理
 * 
 * @author zhouhonggang
 * @date 2023-03-25
 */
@Service
public class EduRoomServiceImpl implements IEduRoomService 
{
    @Autowired
    private EduRoomMapper eduRoomMapper;

    /**
     * 查询教务_教室
     * 
     * @param id 教务_教室主键
     * @return 教务_教室
     */
    @Override
    public EduRoom selectEduRoomById(Long id)
    {
        return eduRoomMapper.selectEduRoomById(id);
    }

    /**
     * 查询教务_教室列表
     * 
     * @param eduRoom 教务_教室
     * @return 教务_教室
     */
    @Override
    public List<EduRoom> selectEduRoomList(EduRoom eduRoom)
    {
        return eduRoomMapper.selectEduRoomList(eduRoom);
    }

    /**
     * 新增教务_教室
     * 
     * @param eduRoom 教务_教室
     * @return 结果
     */
    @Override
    public int insertEduRoom(EduRoom eduRoom)
    {
        return eduRoomMapper.insertEduRoom(eduRoom);
    }

    /**
     * 修改教务_教室
     * 
     * @param eduRoom 教务_教室
     * @return 结果
     */
    @Override
    public int updateEduRoom(EduRoom eduRoom)
    {
        return eduRoomMapper.updateEduRoom(eduRoom);
    }

    /**
     * 批量删除教务_教室
     * 
     * @param ids 需要删除的教务_教室主键
     * @return 结果
     */
    @Override
    public int deleteEduRoomByIds(Long[] ids)
    {
        return eduRoomMapper.deleteEduRoomByIds(ids);
    }

    /**
     * 删除教务_教室信息
     * 
     * @param id 教务_教室主键
     * @return 结果
     */
    @Override
    public int deleteEduRoomById(Long id)
    {
        return eduRoomMapper.deleteEduRoomById(id);
    }
}
